@keyframes scroll {
    0% { transform: translate(0, 0); }
    /* 100% { transform: translate(0, 356px); } */
    100% { transform: translate(0, 267px); }


    /* 100% { transform: translate(0, 178px); } */

    /* 100% { transform: translate(0, 85px); } */
}

@keyframes scrollfade {
    0% { background-color: rgb(179, 179, 179); }
    15% { background-color: rgb(86, 86, 86); }
    90% { background-color: rgb(86, 86, 86); }
    100% { background-color: rgb(179, 179, 179); }
}



#background {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(179, 179, 179);
    z-index: -101;
}

#background-scroll-a , #background-scroll-b {
    position: absolute;
    /* transform: translate(0, -2000px); */

    top: -2000px;
    left: 0;
    width: 100%;
    height: 4000px;
    background: url("../Assets/Stars.svg");
    background-repeat: repeat;
    /* background-size: 200px; */
    background-size: 150px;
    z-index: -100;

}
#background-scroll-b {
    /* top: -2042.5px; */
    /* display: none; */
    /* top: -2085px; */
    top: -2063.75px;
}

#background.scrolling {
    animation: 0.575s scrollfade 0s linear forwards;
}

#background.scrolling #background-scroll-a {
    animation: 0.5s scroll 0.075s ease-in-out forwards;
    /* animation: 0.5s scroll 0.2s ease-in forwards; */
}

#background.scrolling #background-scroll-b {
    animation: 0.5s scroll 0s ease-in-out forwards;
}

#event-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -90;
}


#event-templates {
    position: absolute;
    top: 10%;
    left: 90%;
    /* transform: translate(-50%, -50%);
    z-index: -90;
    width: 100%;
    height: 100%; */
    /* display: none; */
}

#event-templates img {
    width: 1px;
    height: 1px;
}

.solar-flare-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-60%, -50%);
    content: url("../Assets/SolarFlare.svg");
}

.electric-nebula-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    content: url("../Assets/ElectricNebula.svg");
}

.asteroid-strike-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    content: url("../Assets/AsteroidStrike.svg");
}

.gravity-field-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-30%, -50%);
    content: url("../Assets/GravityField.svg");
}

.eventEffect {
    position: absolute;
    top: 50%;
    left: 50%;
}

@keyframes eventFadeIn {
    0% { opacity: 0; top: -20%;}
    25% { opacity: 0; top: -20%;}
    100% { opacity: 1; top: 50%;}
}

@keyframes eventFadeOut {
    0% { opacity: 1; top: 50%;}
    75% { opacity: 0; top: 120%;}
    100% { opacity: 0; top: 120%;}
}

div.eventFadeIn {
    animation: eventFadeIn 0.55s ease-in-out forwards;
}

div.eventFadeOut {
    animation: eventFadeOut 0.55s ease-in-out forwards;
}